package com.java2007.hotel.service;

import com.java2007.hotel.entity.PageBean;
import com.java2007.hotel.pojo.Food;

import java.sql.SQLException;

/**
 * @author ghy
 * @version 1.0
 * @date 2021-01-22
 */
public interface FoodService {

    int save(Food food) throws SQLException;

    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    Food findById(int id) throws SQLException;

    /**
     * 分页
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageBean<Food> findByPage(Integer pageNo, Integer pageSize) throws SQLException;


}
